package com.cn.hibernate.base;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;

public interface IBaseDao<T, ID extends Serializable> {

	public Serializable save(T t);

	public void update(T t);

	public void saveOrUpdate(T t);

	public T load(ID id);

	public T get(ID id);

	public boolean contains(T t);

	public void delete(T t);

	public void delelteAll(Collection<T> entities);

	public List<T> find(String queryString, Object value);

	public List<T> find(String queryString, Object[] values);

	public List<T> find(String queryString);

	public void refresh(T t);
	
}
